package com.company.project.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Table(name = "trade_pay")
public class TradePay {
    /**
     * 支付编号
     */
    @Id
    @Column(name = "pay_id")
    private String payId;

    /**
     * 订单编号
     */
    @Column(name = "order_id")
    private String orderId;

    /**
     * 支付金额
     */
    @Column(name = "pay_amount")
    private BigDecimal payAmount;

    /**
     * 是否已支付 0否 1是
     */
    @Column(name = "is_paid")
    private String isPaid;

    /**
     * 获取支付编号
     *
     * @return pay_id - 支付编号
     */
    public String getPayId() {
        return payId;
    }

    /**
     * 设置支付编号
     *
     * @param payId 支付编号
     */
    public void setPayId(String payId) {
        this.payId = payId;
    }

    /**
     * 获取订单编号
     *
     * @return order_id - 订单编号
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 设置订单编号
     *
     * @param orderId 订单编号
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取支付金额
     *
     * @return pay_amount - 支付金额
     */
    public BigDecimal getPayAmount() {
        return payAmount;
    }

    /**
     * 设置支付金额
     *
     * @param payAmount 支付金额
     */
    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    /**
     * 获取是否已支付 0否 1是
     *
     * @return is_paid - 是否已支付 0否 1是
     */
    public String getIsPaid() {
        return isPaid;
    }

    /**
     * 设置是否已支付 0否 1是
     *
     * @param isPaid 是否已支付 0否 1是
     */
    public void setIsPaid(String isPaid) {
        this.isPaid = isPaid;
    }
}